<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="inc :: header('基本饼图')"/>
</head>
<body>
    <style>
        body{ text-align:center}
        div{ margin:0 auto;  border:0px solid #F00}
    </style>
    <script>
        $(function () {
            FrameWH();
            $.get('/rc/getBasePieJson',function (data) {
                //把字符串转换为json
                data = JSON.parse(data);
                $('#content').highcharts(data);
            });
        });
        function FrameWH() {
            var h = $(window).height()-100;
            $("#container").css("min-height",h+"px");
        }
    </script>
    <div id="content" style="min-height: 400px;min-width: 400px;height: 100%"></div>
</body>
</html>